#!/bin/sh

if [ "x$TACKDIR" = "x" ]; then
        echo "Running the API test requires TACKDIR to be set in the environment"
        exit
elif [ "x$TACKMODDIRS" = "x" ]; then
        echo "Running the API test requires TACKMODDIRS to be set in the environment"
        exit
elif [ "x$1" = "x" ]; then
        echo "Need a base URL"
        exit
fi

$TACKDIR/bin/wrest -v -f $TACKMODDIRS/tack_tmpo/scripts/api-test.urls $1
